package com.x.ant.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

@MappingTable(tableName = "ANT_LINE")
public class Line extends BaseObject {
    @MappingColumn(columnName = "LINE_ID", columnPk = true)
    private String lineId;
    @MappingColumn(columnName = "LINE_NAME")
    private String lineName;
    @MappingColumn(columnName = "LINE_SOURCE")
    private String lineSource;
    @MappingColumn(columnName = "LINE_DEST")
    private String lineDest;
    @MappingColumn(columnName = "LINE_TRUCK_NUM")
    private int lineTruckNum;
    @MappingColumn(columnName = "LINE_CREATE_DATE")
    private Date lineCreateDate;
     @MappingColumn(columnName = "DEPT_ID")
    private String deptId;
    @MappingTable(tableName = "ANT_DEPT")
    private Dept dept;

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getLineSource() {
        return lineSource;
    }

    public void setLineSource(String lineSource) {
        this.lineSource = lineSource;
    }

    public String getLineDest() {
        return lineDest;
    }

    public void setLineDest(String lineDest) {
        this.lineDest = lineDest;
    }

    public Date getLineCreateDate() {
        return lineCreateDate;
    }

    public void setLineCreateDate(Date lineCreateDate) {
        this.lineCreateDate = lineCreateDate;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public int getLineTruckNum() {
        return lineTruckNum;
    }

    public void setLineTruckNum(int lineTruckNum) {
        this.lineTruckNum = lineTruckNum;
    }
}
